import java.util.Scanner;

public class demo03 {
    //最长递增
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[] arr=new int[n];
        for (int i = 0; i < n; i++) {
            arr[i]=sc.nextInt();
        }
        int max=0;
        for (int i = 0; i < n-1; i++) {
            int count=0;
            for (int j = i+1; j < n; j++) {
                if(arr[j-1]<arr[j]){
                    count=j-i+1;
                }else{
                    break;
                }
            }
            if(count>max){
                max=count;
            }
        }
        System.out.println(max);
    }
}
